<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="mytags" uri="/WEB-INF/mytags.tld" %>
<%@ include file="/common/jsp/taglibs.jsp" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
-->
</style>
<script type="text/javascript" src="<%=path %>/common/jquery.js"></script>
<script type="text/javascript" src="<%=path %>/common/mark-ui.js"></script>
<script>
var  highlightcolor='#c1ebff';
function deletesForm(){

	deleteSConfirm("<%=path %>/admin/Users_delete.action?ids=","ids",function(){
	alert("删除成功！");
	pageForm.submit();
});
}
function deleteForm(id){
	deleteConfirm("<%=path %>/admin/Users_delete.action?ids="+id,function(){
		alert("删除成功！");
		pageForm.submit();
	});
}

function edit(id){
window.location="<%=path %>/admin/Users_edit.action?id="+id;

}
function refesh(){
	pageForm.submit();

}

function selCheck(obj){
		jQuery("input[name='ids']").each(function(){
  			$(this).attr("checked",obj.checked);
  		});
	

}
</script>




</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="<%=path %>/images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="<%=path %>/images/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="<%=path %>/images/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：[系统管理]-[用户信息列表]</td>
              </tr>
            </table></td>
            
          </tr>
          
        </table></td>
        <td width="16"><img src="<%=path %>/images/tab_07.gif" width="16" height="30" /></td>
      </tr>
      
    </table></td>
  </tr>
  

  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    
      <tr>
        <td width="8" background="<%=path %>/images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
          <tr id="search">
            <td colspan="7" width="3%" height="42" bgcolor="#FFFFFF">
              <table>
              <s:form action="/admin/Users_find.action" method="post">
              <tr>
              <td>
              用户姓名：
              </td>
              <td>
              &nbsp;<input type="text" name="vo.userFullname" value="${vo.userFullname }">
              
              </td>
              <td>
              登陆名：
              </td>
              <td>
              &nbsp;<input type="text" name="vo.username"  value="${vo.username }">
              </td>
              <td>
              角色：
              </td>
              <td>&nbsp;
             <mytags:select preName="-全部-" name="vo.roleId" objList="${roleList}" objKey="id" objText="roleName" value="${vo.roleId}"></mytags:select>
              </td>
              <td>
              &nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="搜索">
              </td>
              </tr>
              </s:form>
              </table>
            </td>
            
          </tr>
          
           <tr>
            <td colspan="7" width="3%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="right">
              <table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
               
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="<%=path %>/images/22.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center" style="cursor: hand;" onclick="linkWindow('<%=path %>/admin/Users_edit.action');">新增</div></td>
                  </tr>
                </table></td>
                
                <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="<%=path %>/images/11.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center" style="cursor: hand;" onclick="deletesForm();">删除</div></td>
                  </tr>
                </table></td>
              </tr>
            </table>
            </div></td>
            
          </tr>
          
          <tr>
            <td width="3%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="center">
              <input type="checkbox" name="checkbox" value="checkbox" onclick="selCheck(this);"/>
            </div></td>
            <td width="3%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">序号</span></div></td>
            <td width="12%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">用户姓名</span></div></td>
            <td width="14%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">用户名</span></div></td>
            <td width="18%" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">角色</span></div></td>
            <td width="23%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">地区</span></div></td>
            <td width="15%" height="22" background="<%=path %>/images/bg.gif" bgcolor="#FFFFFF" class="STYLE1"><div align="center">基本操作</div></td>
          </tr>
          
          <c:forEach items="${list}" var="vo" varStatus="status">
          <tr>
            <td height="20" bgcolor="#FFFFFF"><div align="center">
              <input type="checkbox" name="ids" value="${vo.id }" />
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
              <div align="center">${(pagerVO.currentPage-1)*(pagerVO.rowPage) + status.index+1 }</div>
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">${vo.userFullname }</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">${vo.username }</span></div></td>
            <td bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">
            
			<mytags:mapping value="${vo.roleId}" items="${RoleDict}"></mytags:mapping>
</span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1"><mytags:mapping value="${vo.parkAreaId}" items="${parkAreaMap}"></mytags:mapping></span></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center">
            <span class="STYLE4"><a style="cursor: hand;" onclick="linkWindow('<%=path %>/admin/Users_edit.action?id=${vo.id }');"><img src="<%=path %>/images/edt.gif" width="16" height="16" />编辑</a>&nbsp; &nbsp;<a style="cursor: hand;" onclick="deleteForm('${vo.id }');"><img src="<%=path %>/images/del.gif" width="16" height="16" />删除</a></span>
            </div>
            </td>
          </tr>
          </c:forEach>
          
        </table></td>
        <td width="8" background="<%=path %>/images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="<%=path %>/images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="<%=path %>/images/tab_18.gif" width="12" height="35" /></td>
        <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;&nbsp;</td>
            <td class="STYLE4" align="right">${pagerVO.pageStr }</td>
          </tr>
        </table>
        </td>
        <td width="16"><img src="<%=path %>/images/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
${pagerVO.formStr }
</body>
</html>
